package edu.dayu.service;

import com.alipay.api.response.AlipayTradeQueryResponse;

import java.util.Map;

public interface AliPayService {
    Map<String,String> goAliPay(Long orderId);


    /**
     * 根据订单号去微信第三方查询支付状态
     */
    AlipayTradeQueryResponse queryPayStatus(Long orderId, String paymentType);
    /**
     * 支付成功
     */
    void paySuccess(String outTradeNo, Integer paymentType, AlipayTradeQueryResponse response);

    /***
     * 退款
     * @param orderId
     * @return
     */
    Boolean refund(Long orderId);
}
